package com.qf.feign.api;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.qf.entity.User;
import com.qf.resp.ResultEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("shop-user")
public interface IUserService {

    @RequestMapping("/userController/addUser")
    public ResultEntity addUser(@RequestBody User user);

    @RequestMapping("/userController/getUserPage")
    public Page<User> getUserPage(Page<User> page);

    @RequestMapping("/userController/getUserByUsername")
    public User getUserByUsername(@RequestParam("username") String username);
}
